﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="I_MaterialTraceModeWebForm.aspx.cs" Inherits="Anke.SHManage.Web.Reports.I_MaterialTraceModeWebForm" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>物资/措施基础信息修改痕迹流水表</title>
    <script src="../Content/EasyUI/jquery.js"></script>
    <script src="../Content/EasyUI/jquery.easyui.js"></script>
    <script src="../Content/EasyUI/locale/easyui-lang-zh_CN.js"></script>
    <link href="../Content/EasyUI/themes/icon.css" rel="stylesheet" />
    <link href="../Content/EasyUI/themes/default/easyui.css" rel="stylesheet" />
    <script src="../Scripts/jquery.AnkeExtend.js"></script>
</head>
     <script type="text/javascript">

         //页面初始化
         $(document).ready(function () {
             initListcombo();
             DisableBackspace();
         })
         //#region 为Combobox增加--请选择--
         function EUIcombobox(jqS, o) {
             $.ajax({
                 type: "POST",
                 async: false,
                 url: o.url,
                 dataType: "JSON",
                 success: function (data1, textStatus, jqXHR) {
                     o.data = o.OneOption.concat(data1);
                     delete o.url;
                     delete o.OneOption;
                     $(jqS).combobox(o);
                 },
                 error: function (XMLHttpRequest, textStatus, errorThrown) {
                     alert("获取字典数据失败！可能是已经超时，请重新登录！"); 
                 }
             });
         }
         function initListcombo() {                      
             //取物资名称
             $.EUIcombobox("#Material", {
                 url: "../IM/AllDictionary/GetMaterialName/",
                 valueField: 'ID',
                 textField: 'Name',
                 editable: true,
                 OneOption: [{
                     ID: "",
                     Name: "--请选择--"
                 }]
             });
             //取修改项
             $.EUIcombobox("#ModifyItem", {
                 url: "../IM/AllDictionary/GetModifyItem/",
                 valueField: 'Name',
                 textField: 'Name',
                 editable: true,
                 OneOption: [{
                     ID: "",
                     Name: "--请选择--"
                 }]
             });
       
         }

    </script>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div>
            <table>                                          
                <tr>                 
                    <td style="width: 8%; text-align: right">修改时间：</td>
                    <td style="width: 12%">
                        <asp:TextBox ID="StartDate" class="easyui-datetimebox" Style="width: 150px" runat="server"></asp:TextBox>
                    </td>
                    <td style="width: 4%; text-align: right">至：</td>
                    <td style="width: 12%">
                         <asp:TextBox ID="EndDate" class="easyui-datetimebox" Style="width: 150px" runat="server"></asp:TextBox>                  
                    </td>   
                     <td style="width: 12%; text-align: right">物资(措施)名称：</td>
                    <td style="width: 12%">
                        <asp:TextBox ID="Material" class="easyui-combobox" Style="width: 150px" runat="server"></asp:TextBox>
                    </td>
                    <td style="width: 8%; text-align: right">修改项：</td>
                    <td style="width: 15%">
                         <asp:TextBox ID="ModifyItem" class="easyui-combobox" Style="width: 200px" runat="server"></asp:TextBox>                  
                    </td>                 
                    <td>
                        <asp:Button ID="Button1" runat="server" Text="查询" OnClick="btnSearch_Click" />
                    </td>
                </tr>
            </table>
            <div style="background-color: #fafafa; border-left: 1px solid scrollbar; overflow: hidden; height: 100%;">

                <rsweb:ReportViewer ID="ReportViewer1" runat="server" Width="100%" Height="100%"  SizeToReportContent="True">
                </rsweb:ReportViewer>
            </div>
        </div>
    </form>
</body>
</html>
